package fivestar.controller.service.impl;

import java.util.List;

import fivestar.controller.service.CityService;
import fivestar.model.dao.CityDao;
import fivestar.model.entity.City;

public class CityServiceImpl implements CityService{

	private CityDao cityDao ;
	
	public void setCityDao(CityDao cityDao) {
		this.cityDao = cityDao;
	}

	@Override
	public void create(City city) throws RuntimeException { 
	}

	@Override
	public void delete(City city) throws RuntimeException { 
	}

	@Override
	public void update(City city) throws RuntimeException { 
		
	}

	@Override
	public City find(int id) throws RuntimeException { 
		return cityDao.find(id);
	}

	@Override
	public List<String> findAll(String country) throws RuntimeException { 
		return cityDao.findAll(country);
	}

	@Override
	public Short findID(String city) throws RuntimeException { 
		return cityDao.findID(city);		
	}

}
